[TARGET_API_MAC_CARBON] (mac_handle_window_event):
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 10 Aug 2007 10:12:43 +0000 (10:12 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 10 Aug 2007 10:12:43 +0000 (10:12 +0000)
Don't use invisible frame as parent window for repositioning.

src/macterm.c

index d0b3ac8f635d65c029f297f5304fdb7f19676e6c..092b7488a5dc5b55e7e2068912efeb0b9221a8d2 100644 (file)
@@ -10704,7 +10704,7 @@ mac_handle_window_event (next_handler, event, data)
        {
          struct frame *sf = SELECTED_FRAME ();
 
-         if (!(FRAME_MAC_P (sf)))
+         if (!(FRAME_MAC_P (sf) && sf->async_visible))
            RepositionWindow (wp, NULL, kWindowCenterOnMainScreen);
          else
            {
@@ -10723,7 +10723,7 @@ mac_handle_window_event (next_handler, event, data)
                   && f->top_pos == sf->top_pos)
                  || (f->left_pos == sf->left_pos + 10 * 2
                      && f->top_pos == sf->top_pos + 32 * 2))
-               MoveWindowStructure (wp,  sf->left_pos + 10, sf->top_pos + 32);
+               MoveWindowStructure (wp, sf->left_pos + 10, sf->top_pos + 32);
 #endif
            }
          result = noErr;